<script>
if (window.testRunner)
    testRunner.dumpAsText();
depth = window.screen.pixelDepth;
if (depth == 16 || depth == 24 || depth == 32) {
  document.write("PASS: window.screen.pixelDepth is either 16, 24, or 32");
}  else {
  document.write("FAIL: window.screen.pixelDepth is " + depth + ", expected 16, 24, or 32");
}
document.write("<br />");
depth = window.screen.colorDepth;
if (depth == 16 || depth == 24 || depth == 32) {
  document.write("PASS: window.screen.colorDepth is either 16, 24, or 32");
}  else {
  document.write("FAIL: window.screen.colorDepth is " + depth + ", expected 16, 24, or 32");
}
</script>
